package org.example.sb_20241005springboot.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:做渐进主义的改良派,不做完没注意的速成派
 * User: XALEXC
 * Date: 2024-10-17
 * Time: 15:23
 */
@RequestMapping("/calc")
@RestController
public class CalcController {

    @RequestMapping("/sum")
    public String sum(Integer num1, Integer num2){

        Integer sum = num1 + num2;
        return "计算结果为:"+sum;

    }

}
